﻿// ***********************************************************************
// Assembly         : OccExample.Commands
// Author           : TianTeng
// Created          : 2024/4/22 9:55:10
//
// Last Modified By : TianTeng
// Last Modified On : 2024/4/22 9:55:10
// ***********************************************************************
// <copyright file="DocNewCmd.cs" company="">
//     Copyright ©  2024
// </copyright>
// <summary></summary>
// ***********************************************************************
using Tx;

namespace OccExample.Commands
{
    /// <summary>
    /// Class DocNewCmd.
    /// </summary>
    /// <seealso cref="IExtendCommand" />
	public class DocNewCmd : IExtendCommand
	{
        /// <summary>
        /// Executes the specified command data.
        /// </summary>
        /// <param name="cmdData">The command data.</param>
        /// <param name="message">The message.</param>
        /// <returns>CmdResult.</returns>
        public CmdResult Execute(ExtendCmdData cmdData, ref string message)
        {
            var mainWindow = cmdData.MainWindow as MainWindow;
            mainWindow.DocNew();
            return CmdResult.Succeed;
        }
	}
}
